<%--
  Created by IntelliJ IDEA.
  User: 14407
  Date: 2020/3/10
  Time: 15:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
    <title>商品列表页面</title>
</head>
<body>
    <table width="800" border="1px">
        <tr>
            <th>编号</th><th>名称</th><th>价格</th><th>产地</th><th>图片</th><th>操作</th>
        </tr>
        <c:forEach items="${goodsEntities}" var="goods">
            <tr>
                <td>${goods.id}</td>
                <td>${goods.name}</td>
                <td>${goods.price}</td>
                <td>${goods.address}</td>
                <td>${goods.image}</td>
                <td>
                    <a href="/goods/goods-update?goodsId=${goods.id}">更新</a>
                    <a href="/goods/delete?goodsId=${goods.id}">删除</a>

                </td>
            </tr>
        </c:forEach>
    </table>
    <a href="/goods/goods-add">添加商品</a>
</body>
</html>
